<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSiteconfigTable extends Migration
{
    /**
     * Run the migrations.
     * @return void
     */
    public function up()
    {
        Schema::create('siteconfig', function (Blueprint $table) {
            $table->increments('id');
            $table->string('option_title', 100)->default('')->comment('项目键');
            $table->string('option_name', 100)->default('')->comment('项目名称');
            $table->text('option_value')->default(null)->nullable()->comment('项目值');
        });
    }

    /**
     * Reverse the migrations.
     * @return void
     */
    public function down()
    {
        Schema::drop('siteconfig');
    }
}
